<template>
  <div>
    <h1>修改head信息</h1>
    <NuxtLink to="/">返回</NuxtLink>
  </div>
</template>

<script setup>
useHead({
  title: '网站的title',
  // or, instead:
  // titleTemplate: (title) => `My App - ${title}`, // 可以通过titleTemplate模板生成title
  viewport: 'width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, viewport-fit=cover',
  charset: 'utf-8',
  meta: [
    { name: 'description', content: '网站描述在这里.' },
    { name: 'keywords', content: 'HTML,CSS,XML,JavaScript' },
    { name: 'author', content: '杜军辉, DUJUNHUI' },
  ],
  script: [
    {
      src: '/js/a.js',
      body: true
    }
  ],
  bodyAttrs: {
    class: 'test'//body标签设置class
  }
})
</script>

<style scoped>

</style>
